/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.business.service.shop;

import com.shop.cereshop.business.param.shop.ShopQualificationParam;
import com.shop.cereshop.commons.domain.business.CerePlatformBusiness;
import com.shop.cereshop.commons.exception.CoBusinessException;

/**
 * 店铺资质认证服务接口
 */
public interface CereShopQualificationService {

    /**
     * 提交店铺资质认证
     *
     * @param param 认证参数
     * @param user 当前用户
     * @return 认证结果
     * @throws CoBusinessException 业务异常
     */
    String submitQualification(ShopQualificationParam param, CerePlatformBusiness user) throws CoBusinessException;

    /**
     * 使用OCR识别营业执照信息
     *
     * @param imageUrl 营业执照图片URL
     * @return OCR识别结果
     * @throws CoBusinessException 业务异常
     */
    Object recognizeBusinessLicense(String imageUrl) throws CoBusinessException;

    /**
     * 获取店铺认证状态
     *
     * @param shopId 店铺ID
     * @return 认证状态信息
     * @throws CoBusinessException 业务异常
     */
    Object getQualificationStatus(Long shopId) throws CoBusinessException;

    /**
     * 更新店铺认证信息
     *
     * @param param 认证参数
     * @param user 当前用户
     * @return 更新结果
     * @throws CoBusinessException 业务异常
     */
    String updateQualification(ShopQualificationParam param, CerePlatformBusiness user) throws CoBusinessException;
}
